﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using SilverlightClient.SLWcfGeebaService;

namespace SilverlightClient
{
    /// <summary>
    /// Interaction logic for SubfourmControl.xaml
    /// </summary>
    public partial class SubfourmControl : UserControl
    {
        private List<string> _moderators;

        public SubfourmControl(string topic, string threadCount)
        {
            InitializeComponent();
            txtTopic.Content = topic;
            labelThreadCount.Visibility = System.Windows.Visibility.Collapsed;
            txtThreadCount.Content = threadCount;
            this._moderators = new List<string>();
        }

        public void addModerator(string moderator)
        {
            this._moderators.Add(moderator);
        }

        public bool isModerator(string username)
        {
            return this._moderators.Contains(username);
        }

        private void removeSubFrmBtn_Click(object sender, RoutedEventArgs e)
        {
            
        }
    }
}
